package cn.hongwei.eduservice.mapper;

import cn.hongwei.eduservice.entity.Chapter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChapterMapper extends BaseMapper<Chapter> {
    //根据课程id获取章节集合
    List<Chapter> getChaptersAndVideos(@Param("courseId") String courseId);
}
